<!DOCTYPE html>
<style>
#target {
  width: 100px;
  height: 100px;
  background-color: green;
  -webkit-mask-image: linear-gradient(white, white);
  -webkit-mask-composite: source-in;
}
</style>
<div id="target"></div>
